<?php
		include_once('../MembersOnly/Authentication.php');

        if(!isset($section)) 
        {
        		$section = 'Home';
    	      
        }
        //if($section == 'Home')
       // {
       // 	  echo "<h1>Welcome to BP Sports Cards and Memorabilia</h1>";
       // }
?>
		<div class="tabbar">
        <div class="tab <?= $section=='Home' ? 'currenttab' : '' ?>">
                <a href="Home.php">
                        Home
                </a>
        </div>
        <div class="tab <?php echo $section=='Products' ? 'currenttab' : '' ?>">
             <a href="Products.php">
                        Products
            </a>
        </div>
        <div class="tab <?php echo $section=='Links' ? 'currenttab' : '' ?>">
             <a href="Links.php">
                        Links
            </a>
        </div>
        <div class="tab <?php echo $section=="About Us" ? 'currenttab' : '' ?>">
            <a href="AboutUs.php">
                                About Us
            </a>
        </div>
       <div class="tab <?php echo $section=='Pictures' ? 'currenttab' : '' ?>">
            <a href="Pictures.php">
                                Pictures
            </a>
        </div>
        <div class="tab <?php echo $section=='Events' ? 'currenttab' : '' ?>">
            <a href="Events.php">
                                Events
            </a>
        </div>
        <div class="tab <?php echo $section=="Contact Us" ? 'currenttab' : '' ?>">
            <a href="ContactUs.php">
                                Contact Us
            </a>
        </div>
        <div class="tab <?php echo $section=="Hours & Directions" ? 'currenttab' : '' ?>">
            <a href="HoursDirections.php">
                               Store Hours &amp; Directions
            </a>
        </div>
        <div class="tab <?php echo $section=='FAQ' ? 'currenttab' : '' ?>">
            <a href="FAQ.php">
                                FAQ
            </a>
        </div>
        <?if(isset($_SESSION['UserEmail']))
        {
        	if(GetUserClearance() == 'Administrator')
        	{        
        	?><div class="tab <?php echo $section=='Admin' ? 'currenttab' : '' ?>">
           	 	<a href="Admin.php">
                               Admin
            	</a>
            </div>
            
           <?}
            else
            {
            	?><div class="tab <?php echo $section=="My Account" ? 'currenttab' : '' ?>">
           	 	<a href="MyAccount.php">
                               My Account
            	</a>
            </div>
           <?}?>
        <?}?>
        <br clear="all" />
   	   </div>
